package com.ygl.common.constant;

/**
 * @Author yanggld
 * @Date 2019/12/17-14:04
 * @Description
 */
public class DiscoveryConstant {

	public static final String DEFAULT = "default";
	public static final String GROUP = "group";
	public static final String VERSION = "version";
	public static final String REGION = "region";
	public static final String VERSION_WEIGHT = "version-weight";
	public static final String REGION_WEIGHT = "region-weight";
	public static final String ENVIRONMENT = "env";
	public static final String RULE = "rule";
	public static final String N_D_PREFIX = "n-d-";
	public static final String SEPARATE = ";" ;
	public static final String EQUALS = "=";
	public static final String DASH = "-";
	public static final String SPRING_APPLICATION_NAME = "spring.application.name";
	public static final String SPRING_APPLICATION_ENVIRONMENT_ROUTE_ENABLED = "spring.application.environment.route.enabled";
	public static final String SPRING_APPLICATION_ENVIRONMENT_ISOLATION_ENABLED = "spring.application.environment.isolation.enabled";
	public static final String SPRING_APPLICATION_ENVIRONMENT_ROUTE = "spring.application.environment.route";
	public static final String SPRING_APPLICATION_ENVIRONMENT_ROUTE_VALUE = "common";

	public static final String TRACE_ID = "trace-id";
	public static final String SPAN_ID = "span-id";
	public static final String SPAN_VALUE = "GRAY";
	public static final String TAG_COMPONENT_VALUE = "gray";

	public static final String CLASS = "class";
	public static final String METHOD = "method";
	public static final String EVENT = "event";
	public static final String ERROR_OBJECT = "error.object";


	public static final String N_D_SERVICE_GROUP = "n-d-service-group";
	public static final String N_D_SERVICE_TYPE = "n-d-service-type";
	public static final String N_D_SERVICE_ID = "n-d-service-id";
	public static final String N_D_SERVICE_ADDRESS = "n-d-service-address";
	public static final String N_D_SERVICE_VERSION = "n-d-service-version";
	public static final String N_D_SERVICE_REGION = "n-d-service-region";
	public static final String N_D_SERVICE_ENVIRONMENT = "n-d-service-env";


	public static final String N_D_REGION = "n-d-region";
	public static final String N_D_VERSION = "n-d-version";
	public static final String N_D_VERSION_WEIGHT = "n-d-version-weight";
	public static final String N_D_REGION_WEIGHT = "n-d-region-weight";
}
